﻿Public Class StammdatenverwaltungMenuController
    Inherits Controller
    Implements StammdatenverwaltungMenuListener

    Private form As New StammdatenverwaltungMenuAdapter

    Sub New()
        MyBase.init()
        form.getObservable().addListener(Me)
    End Sub

    Public Overrides Sub onClose()
        Navigation.getInstance().goBack(Me)
    End Sub

    Public Sub kundePerformed() Implements StammdatenverwaltungMenuListener.kundePerformed
        Navigation.getInstance.toKundenverwaltung(Me)
    End Sub

    Public Sub mitarbeiterPerformed() Implements StammdatenverwaltungMenuListener.mitarbeiterPerformed
        Navigation.getInstance.toMitarbeiterverwaltung(Me)
    End Sub

    Public Sub projektePerformed() Implements StammdatenverwaltungMenuListener.projektePerformed
        Navigation.getInstance.toProjektverwaltung(Me)
    End Sub

    Public Sub tasksPerformed() Implements StammdatenverwaltungMenuListener.tasksPerformed
        Navigation.getInstance.toTaskverwaltung(Me)
    End Sub

    Protected Overrides Function getFormAdapter() As FormAdapter(Of System.Windows.Forms.Form, FormListener)
        Return form.getAsFormAdapter()
    End Function
End Class
